package Servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import Info.BaogaoBI;
import Manage.BaogaoBM;

public class LookBaogaoBS extends HttpServlet{
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		response.setContentType("text/html;charset=utf-8");		

		BaogaoBM bbm = new BaogaoBM();
		List<BaogaoBI> list = bbm.findAll();
		request.setAttribute("baogaobs",list);
	
		request.getRequestDispatcher("LookBaogaoB.jsp").forward(request, response);
	}
}
